package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.ProfitSharing;
import com.xyy.saas.payment.dao.model.ProfitSharingDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProfitSharingDetailMapper {

    int insert(ProfitSharingDetail entity);

    ProfitSharingDetail selectById(Long id);

	List<ProfitSharingDetail> selectByParam(ProfitSharingDetail param);

    int updateSelective(ProfitSharingDetail entity);

    int updateStatusById(ProfitSharingDetail entity);
    int deleteById(Long id);

    /**
     * 插入
     * @param list
     * @return
     */
    int batchInsert(List<ProfitSharingDetail> list);

}
